package com.prizedraw.prize_draw.service;

import com.prizedraw.prize_draw.common.dto.LuckyDrawDto;
import com.prizedraw.prize_draw.entity.Draw;
import com.baomidou.mybatisplus.extension.service.IService;
import com.prizedraw.prize_draw.entity.SysUser;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author czj666
 * @since 2021-09-07
 */
public interface DrawService extends IService<Draw> {


    List<SysUser> listUserByDrawId(Integer drawId);

    Draw listDrawByDrawId(Integer drawId);

    void saveInfo(Draw draw);

    boolean matchNum(Draw draw);

    List<LuckyDrawDto> getLuckyUsersById(Integer id);

//    void exportLuckInfo(Integer id, HttpServletResponse response);

    List<Draw> getUserDrawById(Integer id);

    List<Draw> getDeptDrawById(Integer id);

//    List<Draw> listAll(String drawName);
}
